/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package FrameWork.Objects.Items;

import FrameWork.GameScreen;
import FrameWork.Objects.MyObject;
import FrameWork.RSMainGame;
import javax.microedition.lcdui.Graphics;
/**
 *
 * @author ASUS
 */
public class Items extends MyObject{
    public Items(int _X,int _Y, int _SizeX, int _SizeY,
            float _TimeAni,
            int _Map[][],int _Width, int _Height,
            int _ID){     
        super(_X, _Y, _SizeX, _SizeY, _TimeAni, _Map, _Width, _Height, _ID);
        m_Sprite = RSMainGame.getRS().getItem();
    }
    public void ActionCollision (MyObject _Object){
        
    }
    
    public void DrawScreen (Graphics _Graphics,
            GameScreen _Screen){
         m_Sprite.setFrame(m_CurFrame);

        m_Sprite.setPosition(m_X * 30 - (_Screen.getXView() - _Screen.getWidth()/2), 
                m_Y * 30 - (_Screen.getYView() - _Screen.getHeight()/2));
        
        m_Sprite.paint(_Graphics);
    }
    
}
